<?php

/*
*Author: Panos
*Enables an Entity in Database
*/

function BL_enableEntity($entityId)
{
    if ($entityId < 0)
    {
        return BL_ENABLE_ENTITY;
    }

    $err_no = DB_entityActivate($entityid);

    return $err_no >= 0 ? BL_OK : BL_ENABLE_ENTITY;
}

?>